#include <iostream>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>

using namespace std;

void handler(int signo)
{
    cout << "I am a signal" << signo << endl;
    exit(2);
}

int main()
{

    //signal(SIGINT, handler);
    signal(SIGINT, SIG_IGN);
    while (true)
    {
        cout << "I am acting..."<<getpid() << endl;
        sleep(1);
    }
    return 0;
}